<template>
    <base-panel>
        <top-simple-search @addFun="toAdd" @click="toSearch"></top-simple-search>
        <simple-table ref="myTable"  >
            <el-table-column align="left" prop="title" label="标题"/>
            <el-table-column align="left" prop="no_order" label="排序"/>
            <el-table-column align="left" width="150" label="操作">
                <template slot-scope="{row}">
<!--                    <detail-button @click="toDetail(row)"></detail-button>-->
                    <edit-button @click="toEdit(row)"></edit-button>
                    <delete-button @click="toDelete(row.id)"></delete-button>
                </template>
            </el-table-column>
        </simple-table>
        <detail-dialog :visible.sync="visible" v-if="visible" @reloadList="getList" :row="currRow" :disabled="disabled"></detail-dialog>
    </base-panel>

</template>
<script>
    import DetailDialog from "./DetailDialog";
    import simpleTable from "@/mixins/SimpleTable";
    import XEUtils from "xe-utils";
    export default {
        mixins:[simpleTable],
        components: {DetailDialog},
        data(){
            return{
                listVisible:false

            }
        },
        methods:{
        }
    }
</script>
